import Vue from 'vue'
import Router from 'vue-router'
import Home from '../page/Home'
import TotalEnter from '../page/totalEnter'
// 首页跨境页面
import HomeStatic from './modules/HomeStatic'
// 基金模块
import fundation from './modules/fundation'
// 理财
import Financial from './modules/Financial'
import Insurance from './modules/Insurance'
import Account from './modules/Account'
import EAccount from './modules/EAccount'
import BringForward from './modules/BringForward'
import LivingPayment from './modules/LivingPayment'
import Loan from './modules/Loan'
import Setup from './modules/Setup'
import Demo from './modules/demo'
// 资管
import PropertyManagePlan from './modules/PropertyManagePlan'
// 开户预录
import Prerecord from './modules/Prerecord'
// 结售汇
import ExchangeRate from './modules/ExchangeRate'
// 周利宝
import AdvantageOfWeek from './modules/AdvantageOfWeek'
// 保证金
import Deposit from './modules/Deposit'

// 财富
import WealthIndex from './modules/Wealth/WealthIndex' // 首页
import FundationIndex from './modules/Wealth/Fundation' // 基金
import CurrentPlus from './modules/Wealth/CurrentPlus' // 活期+
import Structuration from './modules/Wealth/Structuration' // 结构化
import RiskEva from './modules/Wealth/RiskEva' // 风评
import FixedPlus from './modules/Wealth/FixedPlus' // 定期+
// 我的
// 财富
import MyWealthIndex from './modules/Mine/Wealth/MyWealthIndex' // 我的财富首页
import MyFixed from './modules/Mine/Wealth/MyFixed' // 我的定期
import MyFixedDetail from './modules/Mine/Wealth/MyFixedDetail' // 我的定期详情
import MyStructuration from './modules/Mine/Wealth/MyStructuration' // 我的结构化
import MyStructurationDetail from './modules/Mine/Wealth/MyStructurationDetail' // 我的结构化详情
import MyFundation from './modules/Mine/Wealth/MyFundation' // 我的结构化

Router.prototype.isBack = false
Vue.use(Router)

export default new Router({
  routes: [{
    path: '/',
    component: Home,
    children: [
      ...fundation,
      ...Insurance,
      ...AdvantageOfWeek,
      ...Deposit,
      ...Financial,
      ...Account,
      ...EAccount,
      ...BringForward,
      ...LivingPayment,
      ...Loan,
      ...Setup,
      ...Demo,
      ...PropertyManagePlan,
      ...Prerecord,
      ...ExchangeRate,
      ...WealthIndex,
      ...FundationIndex,
      ...CurrentPlus,
      ...Structuration,
      ...RiskEva,
      ...MyWealthIndex,
      ...HomeStatic,
      ...FixedPlus,
      ...MyFixed,

      ...MyFixedDetail,
      ...MyStructuration,
      ...MyStructurationDetail,
      ...MyFundation,
      {
        path: '',
        component: TotalEnter
      }
    ]
  }
  ]
})
